package me.wz.util.sdbc;

import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;

import javax.sql.DataSource;

@org.springframework.context.annotation.Configuration
public class Configuration {
    @Bean
    public DataSource datasource() {
        return DataSourceBuilder.create().url("jdbc:h2:mem:h2db").driverClassName("org.h2.Driver").build();
    }

}
